package com.digitalchina.dcn.dcss.jradius.util;

import com.digitalchina.dcn.dcss.web.service.ResourceService;
import com.digitalchina.dcn.dcss.web.service.RoleService;
import com.digitalchina.dcn.dcss.web.service.UserService;
import com.digitalchina.dcn.dcss.web.taglib.SpringUtils;

/**
 * Created by Administrator on 2016/8/31 0031.
 */
public class ServiceUtils {

    private ServiceUtils() {};

    private static UserService userService;


    public static UserService getUserService() {
        if(userService == null) {
            userService = SpringUtils.getBean(UserService.class);
        }
        return userService;
    }
}
